package com.haiziwang.android;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import com.haiziwang.res.*;

public class WordsActivity extends Activity {
	ListView listView ;
	Intent intent= new Intent();
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		intent = getIntent();
		int day=intent.getExtras().getInt("page");
		
		Words words=new Words();
		String [] str=words.getWords(day);
		setContentView(R.layout.words);
		
		listView = (ListView)findViewById(R.id.listView);
		ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, str);
		listView.setAdapter(adapter);
		//listView.setf
	}
	//str=words.getWords();
	
}
